<template>
  <div class="wrapper">
    <!-- header部分 -->
    <header>
      <p>开通成功</p>
    </header>

 
    <!-- 底部菜单部分 -->
    <Footer></Footer>
  </div>
</template>
<script>
import Footer from "../components/Footer.vue";
export default {
  data() {
    return {
      user:{}
    };
  },
  components: {
    Footer,
  },
  created(){
    this.user=this.$getSessionStorage('user');
    if(this.user!=null){
            this.$axios.post('/vip',this.$qs.stringify({
                userId:this.user.userId
            })).then(response=>{
                if(response.data>0){
                    alert('开通成功...');
                    this.$router.push({path:'/index'});
                }

            })
    }
  },
  methods: {
   
  },
};
</script>
<style>

form {

  text-align: center;
  
}
textarea {
  font-size: 28px;
  width: 100%;
  height: 400px;
}

.c1 {
  font-size: 32px;
  font-weight: bold;
  margin-top: 50px;
}
p{
    font-size: 28px;
}
.wrapper header {
  width: 100%;
  height: 12vw;
  background-color: #0097ff;
  color: #fff;
  font-size: 4.8vw;

  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
